// 精选题库的所有接口
import { createAPI } from '@/utils/request'
// 获取学科简单列表
export const subjectList = data => createAPI('subjects/simple', 'get', data)
// 目录列表
export const catalogueList = data => createAPI('/directorys', 'get', data)
// 标签列表
export const labelList = data => createAPI('/tags', 'get', data)
// 简单用户列表
export const userList = data => createAPI('/users/simple', 'get', data)
// 获取所有学科列表
export const allsubjectList = data => createAPI('/questions/choice', 'get', data)
// 试题审核
export const examine = data => createAPI(`/questions/check/${data.id}`, 'post', data)
// 试题上下架
export const upperAndLowerShelves = data => createAPI(`/questions/choice/${data.id}/${data.publishState}`, 'post')
// 试题删除
export const deleteTestQuestions = data => createAPI(`/questions/${data.id}`, 'DELETE')
// 获取基础学科列表
export const getSujectList = data => createAPI(`/questions/${data.id}`, 'get', data)
